<div id="content">
    <section class="main padder">
        <div class="content-header">
            <h1>Edit Member</h1>
        </div>
        <!-- booking table -->
            <div class="panel-body">
                <form  class="form-horizontal" method="post" data-validate="parsley" action="<?php echo base_url('backend/member/edit') . '/' . $member_id; ?>" enctype="multipart/form-data">      
                    <div class="form-group">
                        <label class="col-lg-3 control-label">Username</label>
                        <div class="col-lg-8">
                            <input type="text" name="username" class="form-control"
                                   value="<?php echo isset($member_username) ? $member_username : ''; ?>"   disabled="disabled">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-3 control-label">Email</label>
                        <div class="col-lg-8">
                            <input type="text" name="email" class="form-control" 
                                   value="<?php echo isset($member_email) ? $member_email : ''; ?>"  disabled="disabled">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-3 control-label">Password</label>
                        <div class="col-lg-8">
                            <input id="password" data-rangelength="[8,20]" type="password" name="password" placeholder="Password" class="form-control"  autocomplete="off" data-equalto="#password2">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-3 control-label">Password</label>
                        <div class="col-lg-8">
                            <input id="password2" type="password"  placeholder="Password" class="form-control" data-equalto="#password" >
                            <div class="line line-dashed m-t-large"></div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-3 control-label">First Name</label>
                        <div class="col-lg-8">
                            <input type="text" name="firstname" placeholder="First Name" data-required="true" class="form-control"
                                   value="<?php echo isset($member_firstname) ? $member_firstname : ''; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-3 control-label">Last Name</label>
                        <div class="col-lg-8">
                            <input type="text" name="lastname" placeholder="Last Name" data-required="true" class="form-control"
                                   value="<?php echo isset($member_lastname) ? $member_lastname : ''; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-3 control-label">Gender</label>
                        <div class="col-lg-8 form-float">
                            <div class="radio">
                                <label class="radio-custom">
                                    <input type="radio" name="gender" <?php echo $member_gender == 'male' ? 'checked="checked"' : ''; ?> value="male">
                                    <i class="icon-circle-blank"></i>
                                    Male
                                </label>                      
                            </div>
                            <div class="radio">
                                <label class="radio-custom">
                                    <input type="radio" name="gender" <?php echo $member_gender == 'female' ? 'checked="checked"' : ''; ?> value="female">
                                    <i class="icon-circle-blank"></i>
                                    Female
                                </label>
                            </div>
                        </div>
                    </div>                 
                    <div class="form-group">
                        <label class="col-lg-3 control-label">Birth Day</label>
                        <div class="col-lg-9">
                            <input type="text" class="combodate form-control" data-format="YYYY-MM-DD" data-template="D  MMM  YYYY" name="birthday" 
                                   value="<?php echo isset($member_birthday) ? $member_birthday : ''; ?>" >
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-3 control-label">Phone Number</label>
                        <div class="col-lg-8">
                            <input type="text" name="contact" placeholder="Phone Number" data-required="true" class="form-control" data-type="phone"
                                   value="<?php echo isset($member_contact) ? $member_contact : ''; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-3 control-label">Role</label>
                        <div class="col-lg-4">
                            <select name="role" class="form-control">
                                <option value="staff" <?php echo $member_role=='staff'?'selected="selected"':'';?>>Staff</option>
                                <option value="admin" <?php echo $member_role=='admin'?'selected="selected"':'';?>>Admin</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-3 control-label">Address</label>
                        <div class="col-lg-8">
                            <textarea name="address" placeholder="Address" rows="5" class="form-control" data-trigger="keyup" data-rangelength="[20,200]" data-required="true"><?php echo isset($member_address) ? $member_address : ''; ?></textarea>                    
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-lg-9 col-lg-offset-3">                      
                            <a href="<?php echo base_url('backend/member/index/'.$member_role); ?>" class="btn btn-white">Cancel</a>
                            <button type="submit" class="btn btn-primary">Save changes</button>
                        </div>
                    </div>
                </form>
            </div>
        <!-- / booking table -->
        <div class="spacing-bottom"></div>
    </section>
</div>